package data;

public class Cluster {
	private final Cell parent;
	private final int numLabels;
	private final boolean membrane;
	
	public Cluster(Cell parent, int numLabels, boolean membrane) {
		this.parent = parent;
		this.numLabels = numLabels;
		this.membrane = membrane;
	}

	public Cell getParent() {
		return parent;
	}

	public int getNumLabels() {
		return numLabels;
	}
	
	public boolean isMembraneAssoc() {
		return membrane;
	}
	
	@Override
	public String toString() {
		return (membrane ? "Membrane-assoc. " : "Cytoplasmic ") + "cluster (" + numLabels + ")";
	}
}
